function public_getContextPath() {
	var pathName = document.location.pathname;
	var index = pathName.substr(1).indexOf("/");
	var result = pathName.substr(0, index + 1);
	return result;
}

var base = public_getContextPath();
console.log("++++++++++++++++++++++++" + base + "+++++++++++++++++++++++++++++++++");
//var base = "";